package main

import (
	"github.com/gin-gonic/gin"
	"ruoyi/config"
	"ruoyi/middlewares"
	"ruoyi/routers"
	"ruoyi/utils/log"
)

func main() {
	r := gin.Default()
	r.Use(middlewares.JwtCheck)
	log.Debug(nil, "ruoyi项目启动成功")
	routers.RegisterRouters(r)
	err := r.Run(config.ServerPort)
	if err != nil {
		panic(err)
	}
}
